import request from '@/utils/request_zc'

export function getProductScheduleList ({
  serialNo,
  planNo,
  material,
  bom,
  productionLine,
  process,
  project,
  productionStartDate,
  productionEndDate,
  deliveryStartDate,
  deliveryEndDate,
  publishStatus,
  page, limit }) {
  return request({
    url: '/product/schedule/list',
    method: 'get',
    params: {
      serialNo,
      planNo,
      material,
      bom,
      productionLine,
      process,
      project,
      productionStartDate,
      productionEndDate,
      deliveryStartDate,
      deliveryEndDate,
      publishStatus,
      page,
      limit
    }
  })
}


export function editProductSchedule (data) {
  return request({
    url: '/product/schedule/edit',
    method: 'post',
    data
  })
}

export function addProductSchedule (data) {
  return request({
    url: '/product/schedule/add',
    method: 'post',
    data
  })
}
